package com.realjinge.dao;

import java.util.List;

import com.realjinge.annotation.MyBatisDao;
import com.realjinge.entity.Answer;

@MyBatisDao
public interface AnswerDao {

	/**
	 * 
	 * @param user
	 * @return
	 */
	public Integer insertAnswer(Answer answer);

	/**
	 * 
	 * @param id
	 * @return
	 */
	public Answer selectAnswerByID(Integer id);
	
	/**
	 * 
	 * @param questionId
	 * @return
	 */
	public List<Answer> selectAnswerByQuestionID(Integer questionId);
	
	/**
	 * 
	 * @param questionNo
	 * @return
	 */
	public List<Answer> selectAnswerByQuestionNo(String questionNo);

}
